package edu.fdzc.learn.result;

/**
 * 考试系统响应枚举
 */
public enum ResponseEnum {
    SUCCESS(0, "成功"),
    EXAM_NOT_EXIST(1001, "考试不存在"),
    SUBMIT_FAILED(1002, "提交失败"),
    RESULT_NOT_FOUND(1003, "结果未找到"),
    INVALID_QUESTION_TYPE(1004, "无效的题目类型"),
    CREATE_EXAM_FAILED(1005,"创建错误" );

    private final Integer code;
    private final String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    // Getters
    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}